from django.urls import path, re_path
from . import views

# patch 做局部数据修改，一般用 put（对数据做完整修改，整条数据记录发给我，我去更新！）
urlpatterns = [
    path(r'', views.CartAPIView.as_view({'post': 'add',
                                         'get': 'cart_list',
                                         'patch': 'change_course_selected',
                                         'put': 'change_expire',
                                         'delete': 'delete_course',
                                         })),
    path(r'order/', views.CartAPIView.as_view({'get': 'get_selected_course'})),
]
